import request from './request'

export function getById(param) {
    return request({
        url: 'share/platform-service/position/id/'+param,
    })
}

export function getAllList(param) {
    return request({
        url: 'share/platform-service/position/allList'
    })
}

export function search(data) {
    return request({
        url: 'share/platform-service/position/search',
        method: 'post',
        data
    })
}

export function saveOrUpdate(data,action) {
    return request({
        url: 'share/platform-service/position/'+action,
        method: 'post',
        data
    })
}
export function deleteData(data) {
    return request({
        url: 'share/platform-service/position',
        method: 'delete',
        data
    })
}